package invest.utils;

import invest.pojo.datapojo.KlineHistory;

import java.util.List;

public class Suanfa {
    public static Double startPercent(List<KlineHistory> klineHistories,int i) {
        return (klineHistories.get(i).getOpen() - klineHistories.get(i + 1).getClose()) / klineHistories.get(i + 1).getClose();
    }

    public static Double zhangfu(Double start, Double end) {
        return (end - start) / start;
    }
}
